package com.pingan.haofang.searchcloud.index.dto;

import java.util.Date;

/**
 * @author EX-SUNBIXIAO001
 * @date 2018/4/16
 * @since 1.0.0
 */
public class FailedProcessForMailDto {

    /**
     * ID
     */
    private Long id;

    /**
     * 项目code
     */
    private String projectCode;

    /**
     * 项目名字
     */
    private String projectName;

    /**
     * 索引名称
     */
    private String indexName;


    private String master;


    /**
     * 数据源名称
     */
    private String datasourceName;

    /**
     * 运行类型 0：定时触发 1：人工触发
     */
    private String runType;


    /**
     * 启动时间
     */
    private String startTime;

    /**
     * 实际执行开始时间
     */
    private String executeStartTime;

    /**
     * 实际执行结束时间
     */
    private String executeEndTime;

    /**
     * rpc拉取数据耗时
     */
    private long rpcCostTime;

    /**
     * 数据导入到solr / es 耗时
     */
    private long dataImportCostTime;

    /**
     * 执行消耗总时间
     */
    private long executeCostTime = 0L;

    /**
     * collection名称
     */
    private String collectionName;

    /**
     * 抓取成功记录数
     */
    private long fetchSuccessCount;

    /**
     * 抓取总记录数
     */
    private long fetchTotalCount;

    /**
     * 导入成功记录数
     */
    private long importSuccessCount;

    /**
     * 导入总记录数
     */
    private long importTotalCount;

    /**
     * 配置快照
     */
    private String configSnapshot = "";

    /**
     * 失败原因
     */
    private String failReason = "";

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String getDatasourceName() {
        return datasourceName;
    }

    public void setDatasourceName(String datasourceName) {
        this.datasourceName = datasourceName;
    }

    public String getRunType() {
        return runType;
    }

    public void setRunType(String runType) {
        this.runType = runType;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getExecuteStartTime() {
        return executeStartTime;
    }

    public void setExecuteStartTime(String executeStartTime) {
        this.executeStartTime = executeStartTime;
    }

    public String getExecuteEndTime() {
        return executeEndTime;
    }

    public void setExecuteEndTime(String executeEndTime) {
        this.executeEndTime = executeEndTime;
    }

    public long getExecuteCostTime() {
        return executeCostTime;
    }

    public void setExecuteCostTime(long executeCostTime) {
        this.executeCostTime = executeCostTime;
    }

    public String getCollectionName() {
        return collectionName;
    }

    public void setCollectionName(String collectionName) {
        this.collectionName = collectionName;
    }

    public long getFetchSuccessCount() {
        return fetchSuccessCount;
    }

    public void setFetchSuccessCount(long fetchSuccessCount) {
        this.fetchSuccessCount = fetchSuccessCount;
    }

    public long getFetchTotalCount() {
        return fetchTotalCount;
    }

    public void setFetchTotalCount(long fetchTotalCount) {
        this.fetchTotalCount = fetchTotalCount;
    }

    public long getImportSuccessCount() {
        return importSuccessCount;
    }

    public void setImportSuccessCount(long importSuccessCount) {
        this.importSuccessCount = importSuccessCount;
    }

    public long getImportTotalCount() {
        return importTotalCount;
    }

    public void setImportTotalCount(long importTotalCount) {
        this.importTotalCount = importTotalCount;
    }

    public String getConfigSnapshot() {
        return configSnapshot;
    }

    public void setConfigSnapshot(String configSnapshot) {
        this.configSnapshot = configSnapshot;
    }

    public String getFailReason() {
        return failReason;
    }

    public void setFailReason(String failReason) {
        this.failReason = failReason;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public long getRpcCostTime() {
        return rpcCostTime;
    }

    public void setRpcCostTime(long rpcCostTime) {
        this.rpcCostTime = rpcCostTime;
    }

    public long getDataImportCostTime() {
        return dataImportCostTime;
    }

    public void setDataImportCostTime(long dataImportCostTime) {
        this.dataImportCostTime = dataImportCostTime;
    }
}
